package ursaminor.lazywork.platform.model;

import java.util.Date;

public class Account {

	private Integer accountID;
	private Integer status;
	private Integer domainID;
	private String loginName = "";
	private String password = "";
	private String salt = "";
	private String role = "";
	private String theme = "";
	private Integer createdBy;
	private Date createdAt;
	private Date updatedAt;
	private Date lastLoginAt;
	private String lastLoginVia = "";
	private Date loginAt;
	private String loginVia = "";
	

	public Integer getAccountID() {
		return accountID;
	}
	
	public void setAccountID(Integer accountID) {
		this.accountID = accountID;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public Integer getDomainID() {
		return domainID;
	}

	public void setDomainID(Integer domainID) {
		this.domainID = domainID;
	}

	public String getLoginName() {
		return loginName;
	}

	public void setLoginName(String loginName) {
		this.loginName = loginName;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getSalt() {
		return salt;
	}

	public void setSalt(String salt) {
		this.salt = salt;
	}

	public String getRole() {
		return role;
	}

	public void setRole(String role) {
		this.role = role;
	}

	public String getTheme() {
		return theme;
	}

	public void setTheme(String theme) {
		this.theme = theme;
	}

	public Integer getCreatedBy() {
		return createdBy;
	}

	public void setCreatedBy(Integer createdBy) {
		this.createdBy = createdBy;
	}

	public Date getCreatedAt() {
		return createdAt;
	}

	public void setCreatedAt(Date createdAt) {
		this.createdAt = createdAt;
	}

	public Date getUpdatedAt() {
		return updatedAt;
	}

	public void setUpdatedAt(Date updatedAt) {
		this.updatedAt = updatedAt;
	}

	public Date getLastLoginAt() {
		return lastLoginAt;
	}

	public void setLastLoginAt(Date lastLoginAt) {
		this.lastLoginAt = lastLoginAt;
	}

	public String getLastLoginVia() {
		return lastLoginVia;
	}

	public void setLastLoginVia(String lastLoginVia) {
		this.lastLoginVia = lastLoginVia;
	}

	public Date getLoginAt() {
		return loginAt;
	}

	public void setLoginAt(Date loginAt) {
		this.loginAt = loginAt;
	}

	public String getLoginVia() {
		return loginVia;
	}

	public void setLoginVia(String loginVia) {
		this.loginVia = loginVia;
	}
	
	public boolean equals(Object o) {
		if (o == this) return true;
		if (!(o instanceof Account)) return false;
		Account oo = (Account)o;
		return oo.getAccountID().equals(this.getAccountID());
	}

	public int hashCode() {
		int hashcode = 1;
		return hashcode;
	}
	
	public String toString() {
		StringBuffer sb = new StringBuffer();
		sb.append(this.getClass().getName() + "\n");
		sb.append("getAccountID() : " + getAccountID() + "\n");
		sb.append("getStatus() : " + getStatus() + "\n");
		sb.append("getDomainID() : " + getDomainID() + "\n");
		sb.append("getLoginName() : " + getLoginName() + "\n");
		sb.append("getPassword() : " + getPassword() + "\n");
		sb.append("getSalt() : " + getSalt() + "\n");
		sb.append("getRole() : " + getRole() + "\n");
		sb.append("getTheme() : " + getTheme() + "\n");
		sb.append("getCreatedBy() : " + getCreatedBy() + "\n");
		sb.append("getCreatedAt() : " + getCreatedAt() + "\n");
		sb.append("getUpdatedAt() : " + getUpdatedAt() + "\n");
		sb.append("getLastLoginAt() : " + getLastLoginAt() + "\n");
		sb.append("getLastLoginVia() : " + getLastLoginVia() + "\n");
		sb.append("getLoginAt() : " + getLoginAt() + "\n");
		sb.append("getLoginVia() : " + getLoginVia() + "\n");
		return sb.toString();
	}
	
}
